<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta name = "format-detection" content = "telephone=no">
    <title>优惠套餐</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/discountPackage.css">
    <include file="Public/common_js"/>
</head>

<body>
<div class="discountPackage">
    <volist name="list" id="vo">
        <div class="package-item">
            <div class="package-name">
                <span>{$vo.name}</span>
                <span><label>套餐价：</label><label>¥{$vo.total_price|number_format=###, 2, '.', ''}</label></span>
                <span><label>省</label><label>¥{$vo.sheng|number_format=###, 2, '.', ''}</label></span>
            </div>
            <if condition="$vo['list'] neq ''">
                <div class="package-item-goods">
                    <volist name="vo['list']" id="v">
                        <div class="goods-item">
                            <a href="/Home/goods/detail/id/{$v.sp_id}/local_id/{$v['local_id']}" class="img"><img class="img-lazyload" src="/Public/Home/images/blank.png" data-original="{$v.goods_id|getThumb=###}"></a>
                            <div class="text">
                                <a href="/Home/goods/detail/id/{$v.sp_id}/local_id/{$v['local_id']}" class="name">{$v.pname}</a>
                                <p class="norms" style="font-size: 0.2rem;">{$v.spec_info}</p>
                                <p class="price clearfix"><span class="fl"><label>￥{$v.price|number_format=###, 2, '.', ''}</label><label>￥{$v.marketprice|number_format=###, 2, '.', ''}</label></span><span class="fr">{$v.num}</span></p>
                            </div>
                        </div>
                    </volist>
                    <div class="package-item-cart">
                        <if condition="$vo['sale_status'] eq true">
                            <a href="javascript:void(0);" class="btn btn-block btn-second" data-id="{$vo.id}" data-lid="{$vo.local_id}">加入购物车</a>
                            <else />
                            <span class="btn btn-block" style="background-color: #dedede;color: #fff;" disabled="true">商品售罄</span>
                        </if>
                    </div>
                </div>
            </if>
        </div>
    </volist>
</div>
<!-- 优惠套餐参数弹窗 -->
<div class="discountPackage-popup">
    <h3>请选择参数/规格<a href="javascript:void(0);" class="close">×</a></h3>
    <div class="list">
        <ul>
            <li class="active">
                <p><span>咖啡味</span><span>350g/袋</span></p>
                <p><label>￥98/套<small>原价:￥125</small></label></p>
            </li>
            <li class="out-stock">
                <p><span>苹果味</span><span>450g/袋</span></p>
                <p><label>售罄</label></p>
            </li>
            <li>
                <p><span>荔枝味</span><span>380g/袋</span></p>
                <p><label>￥98/套<small>原价:￥125</small></label></p>
            </li>
        </ul>
    </div>
    <p><a href="javascript:void(0);" class="btn btn-second btn-block angle cart-sure">确定</a></p>
</div>
<script type="text/javascript">
	require(['discountPackage']);
</script>
</body>
</html>